<?php
namespace sm_shop\model;
use sm_shop\model;
class hongbaoModel extends model{

    public static function record( $data ){

        global $_W;
        $now = date('Y-m-d H:i:s');
        $data = [
            'uniacid'       => $_W['uniacid'],
            'customer_id'   => $data['customer_id'],
            'title'         => $data['title'],
            'amount'        => $data['amount'],
            'remark'        => $data['remark'],
            'created_at'    => $now
        ];

        sm_pdo_insert( 'hongbao_record', $data );

    }

}